package com.shy.delegate.servlet;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;

public class MyController {

    static final String SUCCESS = "success";
    @GetMapping(name="/test1")
    public String test1() {
        System.out.println("======调用MyController.test1()方法======");
        return SUCCESS;
    }

    @PostMapping(name="/test2")
    public String test2(String msg) {
        System.out.println("======调用MyController.test2("+msg+")方法======");
        return SUCCESS;
    }


}
